package com.six.goods.controller;

import com.six.core.vo.Result;
import com.six.goods.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: whj
 * @Version 1.0
 * @Date: 2023/3/1  10:31
 */

@RestController
@RequestMapping("/goods/shop")
public class ShopController {
    @Autowired
    private ShopService shopService;

    @RequestMapping("shop")
    @ResponseBody
    public Result shop(){
        return shopService.seleSpop();
    }
}
